<template>
  <tr class="title">
    <td width="50">
      <input type="checkbox" name="" class="choose_all" :checked="select" />
    </td>
    <td width="100" class="">
      <span style="margin-left: -10px">全选</span>
    </td>
    <td width="400">商品信息</td>
    <td width="150">单价（元）</td>
    <td width="150">数量</td>
    <td width="150">金额（元）</td>
    <td width="80">操作</td>
  </tr>
</template>
<script>
export default {
  name: 'TodoHeader',
  props: {
    list: {
      type: Array,
      required: true,
    },
  },
  computed: {
    select() {
      return this.list.every((item) => item.isSelected)
    },
  },
}
</script>
<style lang="less" scoped></style>
